<?php

namespace app\staff\model;

use think\admin\Model;

class StaffTypeModel extends Model
{
    protected $connection = "mysql_app";

    protected $table = "t_staff_type";

    /**
     * 获取指定数据列表
     * @return array
     */
    public static function items(): array
    {
        $map = ['is_deleted' => 0];
        return static::mk()->where($map)->order('id asc')->column('rule,name,desc', 'id');
    }

    /**
     * @return array
     */
    public static function items1(): array
    {
        $map = ['is_deleted' => 0];
        return static::mk()->where($map)->order('id asc')->column('name');
    }
}